/*
 * AcceleratedObject.h
 *
 *  Created on: 30/05/2013
 *      Author: vitor
 */

#ifndef ACCELERATEDOBJECT_H_
#define ACCELERATEDOBJECT_H_

#include "GameObject.h"
#include "Animation.h"
#include "Vector2.h"
#include "InputManager.h"
#include <math.h>

class AcceleratedObject: public GameObject {
protected:
	Animation* _animation;
	float _speed;
	float _acceleration;
	float _rotation;
	Vector2 _vecSpeed;
	Vector2 _vecAccel;
	int _hitPoints;

public:
	AcceleratedObject(Animation* animation, Shape* shape, int hitPoints);
	virtual ~AcceleratedObject();

	void render(float cameraX, float cameraY);
	int update(double dt);

	int getHitPoints() const {
		return _hitPoints;
	}

	void setHitPoints(int hitPoints) {
		_hitPoints = hitPoints;
	}
};

#endif /* ACCELERATEDOBJECT_H_ */
